What is the difference between Selenium WebDriver and Selenium RC | Software Testing Tool
In this article, we will cover a few points which tell the difference between selenium WebDriver and Selenium RC.
- Architecture: The architecture of the selenium RC is a bit more complicated than the selenium web driver. The selenium RC uses an intermediate RC server to communicate with the browser. It needs to be installed before running the test scripts because it acts as a commuter between the commands and the browser.
It performs the following operations when we execute test scripts in Selenium RC:
-
- The server injects the program of javascript which is known as selenium core into the browser.
- Parallelly, the core will start receiving commands from the server.
- Once it receives all the commands, it will execute them as JavaScript commands.
- Then the browser will execute all the instructions which are given by the selenium core and return the overall report to the server.
The browser has direct access and control on the operating system (OS) level. The fundamental essentials to run test scripts on WebDriver are:
-
- An Integrated Development Environment (IDE) with any of the programming languages which support it.
- A browser that executes the instructions supported by the test scripts.
- Speed: The scripts execution of the Selenium WebDriver is faster than Selenium RC. It talks directly to the browser by using the particular drivers of the browsers. The script execution of selenium RC is slower than Selenium WebDriver because it uses the selenium core to control the browser.
- Real-Life Interaction: Selenium WebDriver communicates with web pages in a more realistic way. For example, if the tester disabled the input text box, it will not take any value from the user, similarily the real user can not enter. However, the Selenium RC can access the elements, even if they are disabled.
- Object-Oriented: Selenium WebDriver is a completely object-oriented API. However, Selenium RC is a minimum object-oriented API. Selenium WebDriver is wholly based on object-oriented programming languages such as Java, Python, C#, and many more. The APIs of selenium WebDriver are so strong as compared to the APIs of selenium RC.
- Browser Support: Selenium gives support to the invisible browser written in Java language. It can be configured to stimulate the specific browser. The processing of browsers is very fast because there is no need to wait to load the page. However, the Selenium RC has a limitation. It can not support the headless HTML Unit browser.


